package com.xzp.yygh.hosp.service;

import com.xzp.yygh.model.hosp.Department;
import com.xzp.yygh.vo.hosp.DepartmentQueryVo;
import com.xzp.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface DepartmentService {
    void save(Map<String, Object> paramMap);

    Page<Department> selectPage(Integer page, Integer limit, DepartmentQueryVo departmentQueryVo);

    void remove(String hoscode, String depcode);


    /**
     * 根据医院编号，查询医院所有科室树形关系
     * @param hoscode
     * @return
     */
    List<DepartmentVo> findDeptTree(String hoscode);


    /**
     * 根据hoscode和deptcode获取部门名称
     * @param hoscode
     * @param depcode
     * @return
     */
    String getDeptName(String hoscode, String depcode);

    Department getDepartment(String hoscode, String depcode);
}
